package com.jiangSheng.mall.app.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
@ApiModel(value="商品对象")
public class Goods implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id; //商品ID
	private String name;//商品名称
	private BigDecimal originalPrice;//商品原价
	private BigDecimal PresentPrice;//商品现价
	private String details;//商品详情
	private Integer	state;//商品状态 0：火热 1：热销   2：热卖
	private Integer inventory;//商品库存
	private Integer sales;//商品销量
    private Integer brandId;//商品品牌ID
    private String brandName;//商品品牌名称
    private Integer goodsTypeId;//商品类型ID
    private String goodsTypeName;//商品类型名称
    private Long feightTemplateId;//商品运费
    private String picture;//商品图片
    private String detailTitle;//商品标题
    private String goodsCode;//商品货号
    private Integer deleteStatus;//商品删除状态  0->未删除；1->已删除
    private Integer Status;//商品上架状态  0->下架；1->上架
    private Integer newGoods; //新品状态: 0->不是新品；1->新品
    private Integer recommend;//推荐状态；0->不推荐；1->推荐
    private String serviceIds;
    private Date promotionStartTime;//促销开始时间
    private Date promotionEndTime;//促销结束时间
    private Integer promotionPerLimit;//促销限购数量
    private Integer promotionType;//促销类型：0->没有促销使用原价;1->使用促销价；2->使用会员价；3->使用阶梯价格；4->使用满减价格；5->限时购
	public Goods() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	public Goods(Integer id, String name, BigDecimal originalPrice, BigDecimal presentPrice, String details,
			Integer state, Integer inventory, Integer sales, Integer brandId, String brandName, Integer goodsTypeId,
			String goodsTypeName, Long feightTemplateId, String picture, String detailTitle, String goodsCode,
			Integer deleteStatus, Integer status, Integer newGoods, Integer recommend, String serviceIds,
			Date promotionStartTime, Date promotionEndTime, Integer promotionPerLimit, Integer promotionType) {
		super();
		this.id = id;
		this.name = name;
		this.originalPrice = originalPrice;
		PresentPrice = presentPrice;
		this.details = details;
		this.state = state;
		this.inventory = inventory;
		this.sales = sales;
		this.brandId = brandId;
		this.brandName = brandName;
		this.goodsTypeId = goodsTypeId;
		this.goodsTypeName = goodsTypeName;
		this.feightTemplateId = feightTemplateId;
		this.picture = picture;
		this.detailTitle = detailTitle;
		this.goodsCode = goodsCode;
		this.deleteStatus = deleteStatus;
		Status = status;
		this.newGoods = newGoods;
		this.recommend = recommend;
		this.serviceIds = serviceIds;
		this.promotionStartTime = promotionStartTime;
		this.promotionEndTime = promotionEndTime;
		this.promotionPerLimit = promotionPerLimit;
		this.promotionType = promotionType;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public BigDecimal getOriginalPrice() {
		return originalPrice;
	}


	public void setOriginalPrice(BigDecimal originalPrice) {
		this.originalPrice = originalPrice;
	}


	public BigDecimal getPresentPrice() {
		return PresentPrice;
	}


	public void setPresentPrice(BigDecimal presentPrice) {
		PresentPrice = presentPrice;
	}


	public String getDetails() {
		return details;
	}


	public void setDetails(String details) {
		this.details = details;
	}


	public Integer getState() {
		return state;
	}


	public void setState(Integer state) {
		this.state = state;
	}


	public Integer getInventory() {
		return inventory;
	}


	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}


	public Integer getSales() {
		return sales;
	}


	public void setSales(Integer sales) {
		this.sales = sales;
	}


	public Integer getBrandId() {
		return brandId;
	}


	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}


	public String getBrandName() {
		return brandName;
	}


	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}


	public Integer getGoodsTypeId() {
		return goodsTypeId;
	}


	public void setGoodsTypeId(Integer goodsTypeId) {
		this.goodsTypeId = goodsTypeId;
	}


	public String getGoodsTypeName() {
		return goodsTypeName;
	}


	public void setGoodsTypeName(String goodsTypeName) {
		this.goodsTypeName = goodsTypeName;
	}


	public Long getFeightTemplateId() {
		return feightTemplateId;
	}


	public void setFeightTemplateId(Long feightTemplateId) {
		this.feightTemplateId = feightTemplateId;
	}


	public String getPicture() {
		return picture;
	}


	public void setPicture(String picture) {
		this.picture = picture;
	}


	public String getDetailTitle() {
		return detailTitle;
	}


	public void setDetailTitle(String detailTitle) {
		this.detailTitle = detailTitle;
	}


	public String getGoodsCode() {
		return goodsCode;
	}


	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}


	public Integer getDeleteStatus() {
		return deleteStatus;
	}


	public void setDeleteStatus(Integer deleteStatus) {
		this.deleteStatus = deleteStatus;
	}


	public Integer getStatus() {
		return Status;
	}


	public void setStatus(Integer status) {
		Status = status;
	}


	public Integer getNewGoods() {
		return newGoods;
	}


	public void setNewGoods(Integer newGoods) {
		this.newGoods = newGoods;
	}


	public Integer getRecommend() {
		return recommend;
	}


	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}


	public String getServiceIds() {
		return serviceIds;
	}


	public void setServiceIds(String serviceIds) {
		this.serviceIds = serviceIds;
	}


	public Date getPromotionStartTime() {
		return promotionStartTime;
	}


	public void setPromotionStartTime(Date promotionStartTime) {
		this.promotionStartTime = promotionStartTime;
	}


	public Date getPromotionEndTime() {
		return promotionEndTime;
	}


	public void setPromotionEndTime(Date promotionEndTime) {
		this.promotionEndTime = promotionEndTime;
	}


	public Integer getPromotionPerLimit() {
		return promotionPerLimit;
	}


	public void setPromotionPerLimit(Integer promotionPerLimit) {
		this.promotionPerLimit = promotionPerLimit;
	}


	public Integer getPromotionType() {
		return promotionType;
	}


	public void setPromotionType(Integer promotionType) {
		this.promotionType = promotionType;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	@Override
	public String toString() {
		return "Goods [id=" + id + ", name=" + name + ", originalPrice=" + originalPrice + ", PresentPrice="
				+ PresentPrice + ", details=" + details + ", state=" + state + ", inventory=" + inventory + ", sales="
				+ sales + ", brandId=" + brandId + ", brandName=" + brandName + ", goodsTypeId=" + goodsTypeId
				+ ", goodsTypeName=" + goodsTypeName + ", feightTemplateId=" + feightTemplateId + ", picture=" + picture
				+ ", detailTitle=" + detailTitle + ", goodsCode=" + goodsCode + ", deleteStatus=" + deleteStatus
				+ ", Status=" + Status + ", newGoods=" + newGoods + ", recommend=" + recommend + ", serviceIds="
				+ serviceIds + ", promotionStartTime=" + promotionStartTime + ", promotionEndTime=" + promotionEndTime
				+ ", promotionPerLimit=" + promotionPerLimit + ", promotionType=" + promotionType + "]";
	}
    
   
}
